home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C++ / Applications / Nuntius 1.2 / src / Nuntius / tools / GetNewNews < prev    next >
Encoding:
Text File  |  1994-04-12  |  460 b   |  26 lines  |  [TEXT/MPS ]

  1. #set exit 1
  2. set olddir "``pwd``"
  3. set exit 1
  4. set toDir scratch-1:csm:
  5. if {#} == 0
  6.     choose -u speck -askpw "RUNET:Gorm Appleshare:speck" -type AFPServer
  7.     set from speck:
  8.     set outWithIt 'eject speck:'
  9. else
  10.     set from "{{1}}"
  11.     set outWithIt ''
  12. end
  13. cd "{{from}}"
  14. set ff "`f comp.≈`"
  15. cd "{olddir}"
  16. for n in {ff}
  17.     set exit 0
  18.     mkdir {toDir}{n}:
  19.     set exit 1
  20.     echo -n > {toDir}{n}:z
  21.     rm -y {toDir}{n}:≈
  22.     cp "{{from}}"{n} {toDir}{n}:articles
  23. end
  24. cd "{olddir}"
  25. {outWithIt}
  26.